package com.qf.userinformationsystem.mapper;

import com.qf.userinformationsystem.pojo.UserInfo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
@Mapper
public interface UserInfoMapper {
    //获取所有用户信息
    List<UserInfo> getAll();

    //根据身份证查用户
    List<UserInfo> getUserByIdNum(String idNum);

    List<UserInfo> getUserByIdAndIdNum(Integer id,String idNum);

    //添加用户
    int insert(UserInfo userInfo);

    //编辑用户
    int update(UserInfo userInfo);

    List<UserInfo> searchByFour(String name,Integer age,String sTime,String eTime);
    int delete(Integer id,String creator);
    int delBatch(String ids,String creator);
    List<UserInfo> getUserByIds(String ids);
    List<Integer> count();
}
